<template>
	<h3>Parent</h3>
	<Child title="123" :data="message" @someEvent="getHandle" :onEvent="dataFn"/>
	<p>{{data}}</p>
	<p>{{text}}</p>
</template>

<script>
import Child from "./Child.vue";
export default {
	data() {
		return {
			message: "1234",
			data: "",
			text:""
		}
	},
	components: {
		Child
	},
	methods: {
		getHandle(data){
			console.log("触发了", data);
			this.data = data;
		},
		dataFn(data) {
			this.text = data;
		}
	}
}
</script>